package cn.changeforyou.web.dao.mybatis.ext.extBuilder.writer;

import cn.changeforyou.web.dao.mybatis.ext.extBuilder.SqlContext;

/**
 * @author zhyu
 * @version 1.0
 * @date 2022/3/27 10:27
 */

public abstract class AbstractSqlWriter implements SqlWriter{

    @Override
    public void writeSql(SqlContext context) {
        context.setSentenceEnum(getSentenceEnum());
        doWriteSql(context);
        context.setSentenceEnum(null);
    }

    void doWriteSql(SqlContext context){};
}
